package wiiusej.apptest.statistics;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Set;

public class SimResult {

	private static long wiimoteID; 
	private static int simLength; 
	private static short initTimeout;
	private static HashMap<Integer, ArrayList<Integer>> delayResults = new HashMap<Integer, ArrayList<Integer>>();
	
	
	public SimResult(long wiimoteID, int simLength, short initTimeout){
		
		this.wiimoteID = wiimoteID; 
		this.simLength = simLength;
		this.initTimeout = initTimeout;	
		
	}


	public static long getWiimoteID() {
		return wiimoteID;
	}

	public static int getSimLength() {
		return simLength;
	}


	public static short getInitTimeout() {
		return initTimeout;
	}	


	public static HashMap<Integer, ArrayList<Integer>> getDelayResults() {
		return delayResults;
	}


	public static void setDelayResults(HashMap<Integer, ArrayList<Integer>> delayResults) {
		SimResult.delayResults = delayResults;
	}
	
	public static void addDelayResults(long wiimoteID, ArrayList<Integer> delay){
		
		Integer key = (int) wiimoteID;		
		delayResults.put(key, delay);
	}
	
	public static Set getKeys(long wiimoteID){
		Integer key = (int) wiimoteID;	
		return delayResults.keySet();
	}
	
	
}
